import 'package:get/get.dart';

class MessageState {
  List<MessageBean> messages;

  MessageState() {
    messages = <MessageBean>[].obs;
    for (var i = 0; i < 13; i++) {
      messages.add(MessageBean(
          "http://img.doutula.com/production/uploads/image/2021/07/14/20210714230834_ORzSnv.jpg",
          "备注 $i",
          "消息 $i",
          1626254146,
          i % 2 == 0 ? false : true));
    }
  }
}

class MessageBean {
  String url;
  String title;
  String subTitle;
  bool isRead;
  num timestamp;

  MessageBean(
    this.url,
    this.title,
    this.subTitle,
    this.timestamp,
    this.isRead,
  );
}
